<?php
class Country_model extends CI_Model {

	/**
	 * @author Pwint Phyu Shwe
	 * Country Model for tbl_countries table
	 * CRUD of advertisemet model.
	 * This model include pagination and related functions.
	 * Refer detail in each function's comment section below.
	 */
	private $tbl_countries = 'countries';
	
	function __construct()
	{
		// Call the Model constructor
		parent::__construct();
	}
	function get_dropdownlist()
	{
		$countries = array();
		$countries_get = $this->db->get($this->tbl_countries);
		foreach ($countries_get->result() as $country)
		{
			$countries[$country->iso_code_2] = $country->name;
		}
		return $countries;
	}
}
?>